package com.xiangxiao.rpan.storage.core;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @auther xiangxiao
 * @email 573768011@qq.com
 * @data 2023/12/5 15:19
 */
public interface DownloadFileTool {

  /**
   * 将流读出到文件中
   * @param path
   * */
  void readStreamToFile(String path, HttpServletResponse response) throws IOException;

  /**
   *
   * **/
  String convertMuitlFileToStream(MultipartFile multipartFile, Integer chunkNumber, Integer totalChunks, long blockSize);
}
